package com.woorigil.social.controller.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.woorigil.social.domain.deal.DealCondition;
import com.woorigil.social.domain.deal.DealService;

@Controller
public class DealHtmlMakeController {
	@Autowired DealService dealService;
	
	@RequestMapping("/admin/cms/main")
	public ModelAndView form(DealCondition condition) {
		ModelAndView mav = new ModelAndView("admin/cms/main");
		mav.addObject("searchDealViewList", dealService.search(condition));
		return mav;
	}	
}
